package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "order_rx_info")
public class RxInfo implements Serializable {

	private static final long serialVersionUID = -8785809655526948209L;
	@Id
	@Column(name = "rx_order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String rxOrderNo;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "template_id_bigint", columnDefinition = "bigint(20)")
	private Long templateId;
	@Column(name = "drug_type_nvarchar", columnDefinition = "varchar(255)")
	private String drugType;
	@Column(name = "does_int", columnDefinition = "int(11)")
	private Integer does;
	@Column(name = "day_count_int", columnDefinition = "int(11)")
	private Integer dayCount;
	@Column(name = "avoid_nvarchar", columnDefinition = "varchar(255)")
	private String avoid;
	@Column(name = "use_time_nvarchar", columnDefinition = "varchar(255)")
	private String useTime;
	@Column(name = "cook_nvarchar", columnDefinition = "varchar(255)")
	private String cook;
	@Column(name = "drug_info_nvarchar", columnDefinition = "varchar(255)")
	private String drugInfo;
	@Column(name = "total_does_int", columnDefinition = "int(11)")
	private Integer totalDoes;
	@Column(name = "med_way_nvarchar", columnDefinition = "varchar(255)")
	private String medWay;
}
